#ifndef _CARDCHARSELECT_
#define _CARDCHARSELECT_

#include <vector>
#include "card.h"
#include "brick.h"
#include "bar.h"
#include "string3d.h"
#include "anim.h"

class CardCharSelect: public Card
{
public:
	//Card's lifecycle
	CardCharSelect(char gIsSurvival);
	void input(unsigned char key, bool pressed);
	void update();
	void draw();

private:
	//Bricks
	std::vector<Brick> brick;

	//Selection
	unsigned char prevSel, selection;
	Animation sAnim;

	//Font
	string3d font;

	//Bars
	Bar health, speed, damage;
	//Bar special;

	//Characters stats
	std::vector<unsigned char> vecHp, vecSp;

	//Apply stats of current selection to bars
	void statsToBars();

	//Data to pass on
	char isSurvival;
};

#endif
